<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2023/12/30
  Time: 9:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>

    <html>
    <head>
        <title>顾客管理</title>
        <style>
            body {
                font-family: Arial, sans-serif;
                margin: 0;
                padding: 0;
                background-color: #f4f4f4;
            }

            h3, p {
                text-align: center;
            }

            table {
                width: 80%;
                border-collapse: collapse;
                margin: 20px auto;
            }

            table, th, td {
                border: 1px solid #ddd;
            }

            th, td {
                padding: 10px;
                text-align: center;
            }

            form {
                margin: 20px auto;
                text-align: center;
            }

            label, input, select {
                margin: 5px;
            }

            input[type="submit"] {
                padding: 8px 16px;
                background-color: #27ba9b;
                color: #fff;
                border: none;
                border-radius: 4px;
                cursor: pointer;
            }

            input[type="submit"]:hover {
                background-color: #45a049;
            }

            hr {
                margin: 20px auto;
                width: 80%;
                border: 0.5px solid #ddd;
            }
        </style>
    </head>

<body>

<p style="text-align: center;font-size: 24px">顾客信息管理</p>
<table style="text-align: center">
    <tr>
        <td>顾客编号</td><td>顾客姓名</td><td>顾客密码</td><td>顾客性别</td>
        <td>顾客邮箱</td><td>顾客手机号</td><td>顾客最近一次登录时间</td><td>顾客当前登录状态</td>
    </tr>
</table>
<form id="customerTable" method="get">
    <input type="hidden" name="personAffected" value="customer">
    <input type="text" name="cid" value="<%=c.getCid()%>">
    <input type="text" name="cname" value="<%=c.getName()%>">
    <input type="text" name="pwd" value="<%=c.getPwd()%>">
    <input type="text" name="gender" value="<%=c.getGender()%>">
    <input type="submit" id="update_customer" value="修改"><br>
    <input type="text" name="c_mail" value="<%=c.getC_mail()%>">
    <input type="text" name="c_phone" value="<%=c.getC_phone()%>">
    <input type="text" name="lg_time" value="<%=c.getLg_time()%>">
    <input type="text" name="c_status" value="<%=c.isStatus()%>">
    <input type="submit" id="delete_customer" value="删除">
</form>
</tr>



<h3 style="text-align: center">顾客信息查询</h3>


<form id="selectTable" method="get">
    <input type="hidden" name="personAffected" value="customer">
    <label for="all">查询全部顾客:</label>
    |<input type="submit" id="all" value="查询">
    <br>
    <label>按照顾客id查询:</label>
    <input type="text" name="cid">|<input type="submit" id="by_cid" value="查询">
    <br>
    <label>根据顾客名称关键字查询:</label>
    <input type="text" name="cname">|<input type="submit" id="like_name" value="查询">
    <br>
    <!-- 单选按钮 -->
    <label>按照性别查询:</label>
    <input type="radio" name="gender" value="男" checked>
    <label>男</label>
    <input type="radio" name="gender" value="女">
    <label>女</label>|
    <input type="submit" id="gender" value="查询">
    <br>
    <label>根据顾客电子邮箱查询:</label>
    <input type="text" name="c_email">|<input type="submit" id="by_c_email" value="查询">
    <br>
    <label>根据顾客电话号码查询:</label>
    <input type="text" name="c_phone">|<input type="submit" id="by_c_phone" value="查询">
    <br>
    <label>按照登录时间查询:</label>
    <input type="radio"  name="lg_time" value="latest" checked>
    <label>最近</label>
    <input type="radio"  name="lg_time" value="earliest">
    <label>最晚</label>|
    <input type="submit" id="orderBy_lg_time" value="查询">
    <br>
    <label>按照登录状态查询:</label>
    <input type="radio" name="c_status" value="1" checked>
    <label>在线</label>
    <input type="radio" name="c_status" value="0">
    <label>离线</label>|
    <input type="submit" id="By_c_status" value="查询">
    <br>
</form>
<hr>
<table width="80%" border="1" align="center">
    <tr>
        <th width="10%">顾客编号</th>
        <th width="10%">顾客名称</th>
        <th width="10%">顾客密码</th>
        <th width="5%">性别</th>
        <th width="20%">电子邮箱</th>
        <th width="20%">电话号码</th>
        <th width="20%">最近一次登陆</th>
        <th width="5%">当前登录状态</th>
    </tr>

    <tr>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
    </tr>

</table>
</body>
</html>

</head>
<body>

</body>
</html>
